package main

import (
	"github.com/gin-gonic/gin"
	"time"
)

//泛绑定，/user...action，实现任意 由/user/下的url绑定，即前缀绑定
func main() {
	r := gin.Default()
	r.GET("/user/*action", func(c *gin.Context) {
		c.String(200, "hello world.%s", time.Now())
	})
	_ = r.Run()
	//curl -X GET "http://127.0.0.1:8080/user/123action"
	//curl -X GET "http://127.0.0.1:8080/user/12xxssn"
	//curl -X GET "http://127.0.0.1:8080/user/"
}
